
/*function createReportPageLayout(){
	layout = $("#reportLayoutBody").layout({
		 north__paneSelector: 		'#headerDiv'
		,north__size: 				130
		,north__closable: 			false
		,north__resizable: 			false
		,west__size: 				250
		,west__closable: 			false
		,west__resizable:			false
		,west__paneSelector: 		'#menu'
		,center__paneSelector: 		'#reportsFilter'
		
	});
}*/

function createWelcomePageLayout(){
	$("#welcomePageBody").layout({
		north__paneSelector: 		'#headerDiv'
		,north__closable: 			false
		,north__resizable: 			false
		,north__size: 				120
		,north__spacing_open:		5
		,west__closable: 			false
		,west__resizable:			false
		,west__paneSelector: 		'#mainMenu'
		,center__paneSelector: 		'#reportsFilter'
	});
	
}

function enableDatepicker(elementId,dateFormat){
	$("#" + elementId).datepicker({dateFormat:dateFormat},{ changeMonth: true},{ changeYear: true});
	
	//getter & setter for change month
	$( "#" + elementId ).datepicker( "option", "changeMonth" );
	$( "#" + elementId ).datepicker( "option", "changeMonth", true );
	
	//getter & setter for change year
	$( "#" + elementId ).datepicker( "option", "changeYear" );
	$( "#" + elementId ).datepicker( "option", "changeYear", true );
}

function loadStockLedgerReport(){
	var reportCategory = "StockLedger";
	$.post("getStockLedgerReport.htm",{reportCategory:reportCategory},function(data){
		$("#reportsFilter").empty().html(data);
	});
}

function loadVendorWiseReport(){
	$.post("generateVendorWiseReportFilters.htm",function(data){
		$("#reportsFilter").empty().html(data);
	});
}

function loadNegativePartReport(){
	$.post("generateNegativePartReportFilters.htm",function(data){
		$("#reportsFilter").empty().html(data);
	});
}

/*function checkFormValidations(){
		var formData = $("#reportForm").formSerialize();
		alert(formData);
		$.post("generateReport.htm",formData);
}*/
function openUploadForm(){
	$.post("getUploadFileForm.htm",function(data){
		$("#reportsFilter").empty().html(data);
	});
}